﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    [Serializable]
	public class Accident
	{
		public Accident()
		{}
		#region Model
		private int _id;
		private DateTime  _time;
		private string _addr;
		private string _condition;
		private string _make;
		private decimal  _sgprice;
		private decimal  _lossprice;
		private string _marks;
		private DateTime  _losstime;
		private int  _inputuserid;
		private DateTime  _inputtime;
		private string _carcode;
		private string _customer;
		private string _driver;
		/// <summary>
		/// 
		/// </summary>
		public int Id
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 事故时间
		/// </summary>
		public DateTime  Time
		{
			set{ _time=value;}
			get{return _time;}
		}
		/// <summary>
		/// 事故地址
		/// </summary>
		public string Addr
		{
			set{ _addr=value;}
			get{return _addr;}
		}
		/// <summary>
		/// 事故情况
		/// </summary>
		public string Condition
		{
			set{ _condition=value;}
			get{return _condition;}
		}
		/// <summary>
		/// 事故处理
		/// </summary>
		public string Make
		{
			set{ _make=value;}
			get{return _make;}
		}
		/// <summary>
		/// 事故金额
		/// </summary>
		public decimal  SgPrice
		{
			set{ _sgprice=value;}
			get{return _sgprice;}
		}
		/// <summary>
		/// 理赔事故
		/// </summary>
		public decimal  LossPrice
		{
			set{ _lossprice=value;}
			get{return _lossprice;}
		}
		/// <summary>
		/// 备注
		/// </summary>
		public string Marks
		{
			set{ _marks=value;}
			get{return _marks;}
		}
		/// <summary>
		/// 理赔之间
		/// </summary>
		public DateTime  LossTime
		{
			set{ _losstime=value;}
			get{return _losstime;}
		}
		/// <summary>
		/// 录入员ID
		/// </summary>
		public int  InputUserId
		{
			set{ _inputuserid=value;}
			get{return _inputuserid;}
		}
        /// <summary>
        /// 录入员名字
        /// </summary>
        public string InputTrueName { get; set; }
		/// <summary>
		/// 录入时间
		/// </summary>
		public DateTime  InputTime
		{
			set{ _inputtime=value;}
			get{return _inputtime;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CarCode
		{
			set{ _carcode=value;}
			get{return _carcode;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Customer
		{
			set{ _customer=value;}
			get{return _customer;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Driver
		{
			set{ _driver=value;}
			get{return _driver;}
		}
		#endregion Model

	
	
        public class AccidentInfo
        {
            public string Customer = null;
            public DateTime startime;
            public DateTime endtime;
        }
    }
}
